#include<iostream>
class Solution {
public:
    int add(int a, int b) {
        while (b != 0)
        {
            unsigned int sum = static_cast<unsigned int>(a & b) << 1;
            a ^= b;
            b = sum;
        }
        return a;
    }
};
int main()
{
    Solution s;
    std::cout << s.add(-100, 10000) << std::endl;
    return 0;
}